-- GENERATED SPELL FOR [Chill Nymph] --


function spell0_23678(pUnit, Event) --@Summon Scarlet Bud,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(42388,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_23678', 1, 1)
end

function spell1_23678(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23678', 2000, 1)
end

function Sorts_23678(pUnit, Event)
local choix_sorts_23678 = math.random(0, 1)
if choix_sorts_23678 == 0 then
pUnit:RegisterEvent('spell0_23678', 1, 1)
end
if choix_sorts_23678 == 1 then
pUnit:RegisterEvent('spell1_23678', 1, 1)
end
end

function mob23678_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23678', math.random(1500, 3000), 1)
end

function mob23678_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23678_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23678_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23678, 1, 'mob23678_Action')
RegisterUnitEvent(23678, 2, 'mob23678_Leave')
RegisterUnitEvent(23678, 3, 'mob23678_Kill')
RegisterUnitEvent(23678, 4, 'mob23678_Die')
